package oa.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 考勤实体类
 * @author Administrator
 *
 */
public class Attendance {
	private int attendanceId;//考勤id
	private Date attendanceStarttime;//上班签到时间
	private Date attendanceEndtime;//下班签退时间
	private int userId;//用户id
	private int deptId;//部门id
	private int companyId;//公司id
	
	
	public String getAttendanceEndtimeStr() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(attendanceEndtime);
	}
	public int getAttendanceId() {
		return attendanceId;
	}
	public void setAttendanceId(int attendanceId) {
		this.attendanceId = attendanceId;
	}
	public Date getAttendanceStarttime() {
		return attendanceStarttime;
	}
	public void setAttendanceStarttime(Date attendanceStarttime) {
		this.attendanceStarttime = attendanceStarttime;
	}
	public Date getAttendanceEndtime() {
		return attendanceEndtime;
	}
	public void setAttendanceEndtime(Date attendanceEndtime) {
		this.attendanceEndtime = attendanceEndtime;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getDeptId() {
		return deptId;
	}
	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}
	public int getCompanyId() {
		return companyId;
	}
	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}
	
}
